﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml;
using System.Xml.Xsl;
using System.Xml.XPath;

namespace ExecXML
{
    class Program
    {
        static void Main(string[] args)
        {
            XslCompiledTransform x = new XslCompiledTransform();
            // Load the XML 
            XPathDocument doc = new XPathDocument(args[1]);
            // Load the style sheet.
            XslCompiledTransform xslt = new XslCompiledTransform();
            xslt.Load(args[0]);
            XmlTextWriter writer = new XmlTextWriter(args[1], Encoding.UTF8);
            xslt.Transform(doc, writer);
            writer.Close();
            Console.WriteLine("部署配置文件转换完成！");
        }
    }
}
